local miemokunling = fk.CreateSkill {
  name = "miemokunling",
}

Fk:loadTranslationTable{
  ["miemokunling"] = "灭默坤灵",
  [":miemokunling"] = "你的【杀】可以额外选中两个目标<br/>"..
  "你造成的伤害无视护甲与防具。",
}

miemokunling:addEffect(fk.BeforeHpChanged, {
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(self.name) and data.damageEvent and data.damageEvent.from == player
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local x=data.shield_lost or 0
    if x>0 then
      data.num = data.num - data.shield_lost
      data.shield_lost=0
    end
  end,
})

miemokunling:addEffect(fk.TargetSpecified, {
  can_refresh = function (self, event, target, player, data)
    return player == target and data.card.trueName == "slash" and player:hasSkill(self.name)
     and data.to:isAlive()
  end,
  on_cost = Util.TrueFunc,
  on_refresh = function (self, event, target, player, data)
    data.to:addQinggangTag(data)
  end,
})

-- 增加杀的目标数
miemokunling:addEffect("targetmod", {
  name = "miemokunling_mod",
  extra_target_func = function(self, player, skill, card)
    if player:hasSkill("miemokunling") and card.name == "slash" then
      return 2
    end
  end,
})

return miemokunling